package com.wenbo.wenbo.controller;

import com.wenbo.wenbo.service.FishService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author ywb
 * @date 2021年12月08日 9:57
 */
@RestController
@RequestMapping("/api")
public class FlshController {

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Resource
    private FishService fishService;


    @GetMapping("/childrenInfo")
    public void childrenInfo() {
        fishService.childrenInfo();
    }


    @GetMapping("/aaa")
    public void aaa() {
        logger.trace("I am trace log.");
        logger.debug("I am debug log.");
        logger.warn("I am warn log.");
        logger.error("I am error log.");
    }
}
